﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
using 发布日志;

internal class Program
{
    private static async Task Main(string[] args)
    {
        using (var application = AbpApplicationFactory.Create<PublicModule>(options =>
        {
            options.UseAutofac();
        }))
        {
            application.Initialize();

            var messagingService = application
                .ServiceProvider
                .GetRequiredService<EventMessagingService>();

            await messagingService.RunAsync();

            application.Shutdown();
        }
    }
}